import request from '@/axios/request';
import url from '@/axios/url';
const { mesUrl, adminUrl } = url();
// 导出url
export const exportUrl = `${mesUrl}mesLoadMaterialVerificationDetail/export`
// 获取子表详情
export function getInfo (id = '') {
  return request({
    url: `${mesUrl}mesLoadMaterialVerificationDetail/info/${id}`,
    method: 'get'
  })
}
// 获取主表详情
export function getMasterInfo (id = '') {
  return request({
    url: `${mesUrl}mesLoadMaterialVerification/info/${id}`,
    method: 'get'
  })
}
//分页查询
export function getList (params = {}) {
  return request({
    url: `${mesUrl}mesLoadMaterialVerificationDetail`,
    method: 'get',
    params,
  });
}
//新增
export function rowCreate (data = {}) {
  return request({
    url: `${mesUrl}mesLoadMaterialVerificationDetail`,
    method: 'post',
    data,
  });
}
//修改
export function rowUpdate (data = {}) {
  return request({
    url: `${mesUrl}mesLoadMaterialVerificationDetail`,
    method: 'put',
    data,
  });
}
//删除
export function rowDel (id) {
  return request({
    url: `${mesUrl}mesLoadMaterialVerificationDetail/${id}`,
    method: 'put',
  });
}

